#pragma once

#include "AI_Brain.h"
#include "../EventManager.h"
#include <string>
#include <iostream>

/**
=======================
Control the Players actions
=======================
*/
class PlayerController
{
public:
    PlayerController(void);
    /** Gather input, and send events */
    void GatherEvents();
private:
    int m_oldButtons;   // last button state
public:
    virtual ~PlayerController(void);
};


/** Event Type for motion */
struct PlayerMovement : public IEventData
{   PlayerMovement(int b) { buttons = b; };
    int buttons;
    IEventData* Copy() { return new PlayerMovement(buttons); };
    virtual ~PlayerMovement() {IEventData::~IEventData(); };
};
